<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!-- #BeginTemplate "../web-data/Templates/template-Directory.html" -->
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="generator" content="Adobe GoLive">
<script language="JavaScript" type="text/javascript" src="js/allnames.js"></script>
<script language="JavaScript" type="text/javascript" src="js/medc_common.js"></script>
<script language="JavaScript">
<!--
function changeGroupSelect(){
	//1.change nameSelect content
	//get selected group
	var groupSelect=document.getElementById("groupSelect");
	var values=getSelectedOptions(groupSelect);
	if(values==null && values.length==0){
		return;
	}
	var groupSelectValue=values[0];
	//convert group name to group array
	var groupArray = eval(groupSelectValue);
	//update name select
	var nameSelect=document.getElementById("nameSelect");
	removeAllOptions(nameSelect);
	for(var i=0;i<groupArray.length;i++){
		var infoIndex=1;
		var optionValue="param?userName="+groupArray[i][infoIndex++]+"&email="+groupArray[i][infoIndex++]+"&fax="+groupArray[i][infoIndex++]+"&tel="+groupArray[i][infoIndex++]+"&brief="+groupArray[i][infoIndex++];
		addOption(nameSelect,groupArray[i][1],optionValue);
	}
	nameSelect.options.selectedIndex = 0;
	//2.change person info
	changeNameSelect();
}

function changeNameSelect(){
	var nameSelect=document.getElementById("nameSelect");
	var values=getSelectedOptions(nameSelect);
	if(values==null && values.length==0){
		return;
	}
	var nameSelectValue=values[0];	
	//alert("nameSelectValue is:"+nameSelectValue);
	document.getElementById("userName").value=nameSelectValue.getParameter("userName");
	document.getElementById("email").value=nameSelectValue.getParameter("email");
	document.getElementById("fax").value=nameSelectValue.getParameter("fax");
	document.getElementById("tel").value=nameSelectValue.getParameter("tel");
	document.getElementById("brief").value=nameSelectValue.getParameter("brief");
}

//--></script>

<title>MEDC &#150; Directory of Researchers</title>
<link href="css/medc.css" rel="stylesheet" type="text/css">
<link href="allstyles.css" rel="stylesheet" type="text/css" media="all">
</head>

<body bgcolor="#ffffff">
<div id="toparea">
	<?php 
	require_once "common/config.inc.php";
	require_once "common/header.inc.php"
	?>
</div>	

<div id="mainarea">
<form action="none" method="post" name="medcform">
<!-- #BeginEditable "PageBody" -->
<br/>
<div class="Header">E-mail and Fax Directory of M&ouml;ssbauer Authors</div>
<br/>
<div class="Maintext">Select the first letter of the author's last
name from the list at left, and then chose the name from the list.
Please note that it will take a few seconds for each letter's list to
load into your browser.</div>

<br/>		
<table width="90%" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<td valign="top" align="left" ><select
					name="groupSelect" id="groupSelect" size="26"
					onchange="changeGroupSelect()">
					<option value="a_name">a</option>
					<option value="b_name">b</option>
					<option value="c_name">c</option>
					<option value="d_name">d</option>
					<option value="e_name">e</option>
					<option value="f_name">f</option>
					<option value="g_name">g</option>
					<option value="h_name">h</option>
					<option value="i_name">i</option>
					<option value="j_name">j</option>
					<option value="k_name">k</option>
					<option value="l_name">l</option>
					<option value="m_name">m</option>
					<option value="n_name">n</option>
					<option value="o_name">o</option>
					<option value="p_name">p</option>
					<option value="q_name">q</option>
					<option value="r_name">r</option>
					<option value="s_name">s</option>
					<option value="t_name">t</option>
					<option value="u_name">u</option>
					<option value="v_name">v</option>
					<option value="w_name">w</option>
					<option value="x_name">x</option>
					<option value="y_name">y</option>
					<option value="z_name">z</option>
				</select></td>
				<td valign="top" align="left" ><select
					name="nameSelect" id="nameSelect" size="26"
					onchange="changeNameSelect()">
					<option></option>
				</select></td>
				<td valign="top" align="left" >
				<table border="0" cellspacing="1" cellpadding="1">
					<tr>
						<td nowrap width="40"><font size="2"
							face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Name</font></td>
						<td><textarea name="userName" id="userName" rows="1" cols="39" readonly></textarea></td>
					</tr>
					<tr>
						<td nowrap width="40"><font size="2"
							face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">E-mail</font></td>
						<td><textarea name="email" id="email" rows="2" cols="39" readonly></textarea></td>
					</tr>
					<tr>
						<td nowrap width="40"><font size="2"
							face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Fax</font></td>
						<td><textarea name="fax" id="fax" rows="1" cols="39" readonly></textarea></td>
					</tr>
					<tr>
						<td nowrap width="40"><font size="2"
							face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Tel</font></td>
						<td><textarea name="tel" id="tel" rows="2" cols="39" readonly></textarea></td>
					</tr>	
					<tr>
						<td nowrap width="40"><font size="2"
							face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Brief</font></td>
						<td><textarea name="brief" id="brief" rows="5" cols="39" readonly wrap="off" style="overflow:scroll;overflow-x:scroll;overflow-y:scroll;"></textarea></td>
					</tr>										
				</table>
				</td>
			</tr>
		</table>
		<br/>
		<div class="smalltext">Due to font issues, names that contain special
		characters (i.e., grave, acute, cedilla, umlaut, tilde, circumflex,
		etc.) may show in your browser as another symbol, or as a blank
		square. We are working on this issue and it will be corrected as
		quickly as possible.
		<p>Is your e-mail correct? If not, please <a
			href="mailto:medc@dicp.ac.cn">send</a> the correct info to us!</p>
		<p></p>
		</div>
<!-- #EndEditable -->
</form>
</div><!--end of mainarea-->
<div class="myclear"></div>
<div id="footer" class="center"><?php include "common/footer.inc.php"?></div>
</body>
<!-- #EndTemplate -->
</html>
